package com.example.demo.dto

import io.swagger.annotations.ApiModelProperty
import javax.validation.constraints.NotBlank


data class UserDo(
        @get: NotBlank(message = "用户ID不为空")
        @ApiModelProperty(value = "userId")
        val userId: String,

        @get: NotBlank(message = "用户名不为空")
        @ApiModelProperty(value = "userName")
        val userName: String,

        @get: NotBlank(message = "mobile不为空")
        @ApiModelProperty(value = "mobile")
        val mobile: String,

        @get: NotBlank(message = "email不为空")
        @ApiModelProperty(value = "email")
        val email: String,

        @get: NotBlank(message = "sex不为空")
        @ApiModelProperty(value = "sex")
        val sex: String,

        @get: NotBlank(message = "description不为空")
        @ApiModelProperty(value = "description")
        val description: String,

        @get: NotBlank(message = "deptId不为空")
        @ApiModelProperty(value = "deptId")
        val deptId: String,

        @get: NotBlank(message = "deptName不为空")
        @ApiModelProperty(value = "deptName")
        val deptName: String

)

